can we create a program without main method javatpoint